﻿IF EXISTS (SELECT * FROM sysobjects WHERE type = 'P' AND name = 'operarioDelete')
	BEGIN
		DROP  Procedure  operarioDelete
	END
GO

CREATE PROCEDURE [dbo].[operarioDelete] 	
	(	
		@id AS INT
	)	
AS
BEGIN	
	SET NOCOUNT ON
	  
	UPDATE	Lit_Operario
	SET		Activo = 0			
	WHERE id = @id
	
	SET NOCOUNT OFF
END
GO 